package com.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.bean.StockRecord;
import com.ssm.dao.StockRecordQueryMapper;
import com.ssm.service.InOutStockRecordQueryService;

@Service
public class InOutStockRecordQueryServiceImpl implements InOutStockRecordQueryService {

	@Autowired
	public StockRecordQueryMapper stockRecordQueryMapper;
	
	@Override
	public int queryInOutStockCnt(StockRecord stockRecord) {
		return stockRecordQueryMapper.queryInOutStockCnt(stockRecord);
	}
	
	@Override
	public List<StockRecord> queryInOutStockByParam(Map<String,Object> param) {
		return stockRecordQueryMapper.queryInOutStockByParam(param);
	}

	@Override
	public void insertStockReord(Map<String, String> param) {
		stockRecordQueryMapper.insertInstockByRFID(param);
		
	}

	@Override
	public void insertOutStockReord(Map<String, String> param) {
		stockRecordQueryMapper.insertOutstockByRFID(param);
	}

	@Override
	public int isRefreshedJsp() {
		return stockRecordQueryMapper.isrefreshedJsp();
		
	}

}
